import request from '@/utils/request'

// 获取酒店列表
export const getDiamondList = (query) => {
  return request({
    url: '/system/diamond/package/list',
    method: 'get',
    params: query
  })
}
//删除
export const DelDiamond = (id) => {
  return request({
    url: '/system/diamond/package/del/'+id,
    method: 'get'
  })
}
//新增
export const AddDiamond = (query) => {
  return request({
    url: '/system/diamond/package/add',
    method: 'post',
    data: query
  })
}
//修改
export const UpdateDiamond = (query) => {
  return request({
    url: '/system/diamond/package/update',
    method: 'post',
    data: query
  })
}
//酒店详情
export const GetDetail = (id) => {
  return request({
    url: '/system/diamond/package/getDetail/'+id,
    method: 'get',
  })
}
